Repository navigation
Report every missing package in validate-cks-node - #14756
Open
bhouse-nexthop wants to merge 1 commit into
Open
bhouse-nexthop wants to merge 1 commit into
bhouse-nexthop wants to merge 1 commit into
Conversation
- Debian/Ubuntu branch appended with `+="$package"`, which glues the
name onto element 0 instead of adding an element.
- Result: count always 1, names printed run together
(e.g. "curlgnupg-agent"), so the log does not say what is missing.
- Use `+=("$package")` so each missing package is its own element.
Signed-off-by: Brad House <bhouse@nexthop.ai>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 4.22 #14756 +/- ##
============================================
- Coverage 18.32% 18.32% -0.01%
- Complexity 16644 16645 +1
============================================
Files 5939 5939
Lines 537787 537787
Branches 65932 65932
============================================
- Hits 98544 98536 -8
- Misses 428033 428041 +8
Partials 11210 11210
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
2 tasks done
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #14755
In
validate-cks-node, the Debian/Ubuntu branch appended withMISSING_PACKAGES+="$package", which joins every name onto element 0.+="$package"+=("$package")1curlgnupg-agent...curl gnupg-agent ...One-line change. The RPM branch already appends correctly.
Related open PRs #13714 and #13715 edit
REQUIRED_PACKAGESin the same file. This PR does not touch the list, and their hunk still applies cleanly on top of it.Types of changes
Bug Severity
How Has This Been Tested?
Ran lines 20-45 of the script in bash with
OS=Ubuntuanddpkgstubbed by a shell function:1+ names run together7+ names separated by spaces0/0Not in scope (pre-existing, noted for follow-up)
rpm -qa \| grep $packageis a substring match (curlmatcheslibcurl).dpkg -sexits 0 for a removed package that still has config files.